package com.basin.micro.auth.module.menu.pojo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@Getter
public enum RouteTypeEnum {
    ROUTE_TYPE_0(0, "内链"),
    ROUTE_TYPE_1(1, "外链");
    @EnumValue
    private final Integer code;
    @JsonValue
    private final String name;

    @JsonCreator
    RouteTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
